package org.dromara.nursing.domain.bo;

import org.dromara.nursing.domain.Visitor;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 访客记录业务对象 ms_visitor
 *
 * @author Xue
 * @date 2025-03-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Visitor.class, reverseConvertGenerate = false)
public class VisitorBo extends BaseEntity {

    /**
     * 访客ID
     */
    @NotNull(message = "访客ID不能为空", groups = { EditGroup.class })
    private Long visitorId;

    /**
     * 访客姓名
     */
    @NotBlank(message = "访客姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String visitorName;

    /**
     * 身份证号
     */
    private String idCard;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 老人姓名
     */
    @NotBlank(message = "老人姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String elderName;

    /**
     * 与老人关系
     */
    private String relationship;

    /**
     * 来访时间
     */
    private Date visitTime;

    /**
     * 离开时间
     */
    private Date leaveTime;

    /**
     * 来访目的
     */
    private String visitPurpose;

    /**
     * 带入物品
     */
    private String itemsBrought;

    /**
     * 登记人员
     */
    @NotBlank(message = "登记人员不能为空", groups = { AddGroup.class, EditGroup.class })
    private String registrationStaff;

    /**
     * 备注
     */
    private String remarks;


}
